<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>let const</title>
	</head>
	<body>
		<script>
			 let username='haoren';
			 let u1={
				 username //等价于 username:username
			 }
			 console.log(u1);
			 
			 let u2={
				 fn:function(){
					console.log("--ES5--"); 
				 }
			 }
			 //ES6的简写方式
			 let u3={
				 fn(){
					 console.log("--ES6--"); 
				 }
			 }
			 u2.fn();
			 u3.fn();
		</script>
	</body>
</html>
